<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ page import="org.racsor.cc.model.PojoDamageBoss"%>
<html>
  <head>
    <meta http-equiv="content-type" content="text/html; charset=UTF-8">
    <title>calculateDamageBoss</title>
  </head>

  <body>
    <h1>calculateDamageBoss!</h1>
    <h5>thanks to Adam Hayek</h5>
	
 	<form name="calculateDamageBossForm" method="post" action="/calculateDamageBoss">

		
			
		<table style="height: 36px; width: 100%;">
			<tr>
				<td style="width: 75px; ">Name</td>
				<td style="width: 75px; ">Level</td>
				<td style="width: 75px; ">Skill</td>
				<td style="width: 75px; ">Attack</td>
				<td style="width: 75px; ">Defense</td>
				<td style="width: 75px; ">Building def</td>
				<td style="width: 75px; ">Sta Max</td>
				<td style="width: 75px; ">Stamina</td>
				<td style="width: 75px; ">Natty</td>
				<td style="width: 75px; ">Snake</td>
				<td style="width: 75px; ">Loco</td>
				<td style="width: 75px; ">Payne</td>
			</tr>
			<%
			
			PojoDamageBoss pojo=(PojoDamageBoss)request.getAttribute("pojo");
			if(pojo!=null){
			
			 %>
			<tr>
				<td><input type="text" name="name" value="<%= pojo.getName() %>" size="4"/></td>
				<td><input type="text" name="level" value="<%= pojo.getLevel() %>" size="4"/></td>
				<td><input type="text" name="skill" value="<%= pojo.getSkill() %>" size="4"/></td>
				<td><input type="text" name="attack" value="<%= pojo.getAttack() %>" size="6"/></td>
				<td><input type="text" name="defense" value="<%= pojo.getDefense() %>" size="6"/></td>
				<td><input type="text" name="building" value="<%= pojo.getBuilding() %>" size="6"/></td>
				<td><input type="text" name="staMax" value="<%= pojo.getStaMax() %>" size="4"/></td>
				<td><input type="text" name="sta" value="<%= pojo.getSta() %>" size="4"/></td>
				<td><%= pojo.getNatty() %></td>
				<td><%= pojo.getSnake() %></td>
				<td><%= pojo.getLoco() %></td>
				<td><%= pojo.getPayne() %></td>
			</tr>
			
			<%}
			else{ %>
			<tr>
				<td><input type="text" name="name" size="4"/></td>
				<td><input type="text" name="level" size="4"/></td>
				<td><input type="text" name="skill" size="4"/></td>
				<td><input type="text" name="attack" size="6"/></td>
				<td><input type="text" name="defense" size="6"/></td>
				<td><input type="text" name="building" size="6"/></td>
				<td><input type="text" name="staMax" size="4"/></td>
				<td><input type="text" name="sta" size="4"/></td>
				<td></td>
				<td></td>
				<td></td>
				<td></td>
			</tr>
			<%
			} %>
			
			<tr>
				<td colspan=""><input type="submit" value="Submit" /></td>
				<td><input type="reset" value="Reset" /></td>
				<td></td>
				<td></td>
				<td></td>
				<td></td>
				<td></td>
				<td></td>
				<td></td>
				<td></td>
				<td></td>
				<td></td>
			</tr>
		</table>

	</form>
  </body>
</html>
